﻿using System;

namespace BCL.Tool
{
    public interface ILog
    {
        void Write(string text, string appid, OperationType otype);
        void Write(string text, string titel, LogType logType);
        void Write(string text, string titel);
        void Write(string text);
        void Error(string text);
        void Msg(string text);
        void Error(Exception ex);
        void Error(string text, Exception ex);
        string Read(LogType logType = LogType.Error);
    }

    public enum LogType
    {
        Error = 1,
        Msg = 2,
        WebError = 4,
        WebMsg = 8
    }
    public enum OperationType
    {
        Install = 0,
        UnInstall = 1,
        Renovate = 2,
        Update = 3,
        Start = 4,
        Login = 5,
        Logout = 6,
        Open = 7,
        Close = 8
    }
}
